from django.urls import path

from . import views


urlpatterns = [
     # 1.判断用户名是否重复
     path('usernames/<username:username>/count/', views.UserCountView.as_view()),
     # 2.注册
     path('register/', views.RegisterView.as_view()),
     # 3.用户名登录的子路由:
     path('login/', views.LoginView.as_view()),
     # 4.退出登录
     path('logout/', views.LogoutView.as_view()),
     # 5.用户中心
     path('info/', views.UserInfoView.as_view()),
     #6. 添加邮箱
     path('emails/', views.EmailView.as_view()),
     #7.验证邮箱
     path('emails/verification/', views.VerifyEmailView.as_view()),
     # 8.新增收货地址
     path('addresses/create/', views.CreateAddressView.as_view()),
     # 9. 浏览记录
     path('browse_histories/', views.UserBrowseHistory.as_view()),
]
